<?php
require_once("../config.php");
if(class_exists("Thread")) {
    class seturls extends Thread
    {
        public $url = array();
        public $name = '';
        public $runing = false;
        public $result;

        public function __construct()
        {
            $this->url = '';
            $this->lurl = 0;
            $this->name = $name;
            $this->runing = true;
            $this->result = array();
            $this->pageinfo;
            $this->news;
        }

        public function run()
        {
            $this->lurl = $this->url;
            $this->news->url = $this->url;
            $this->news->seturl($this->url);
            $message = $this->news->getnr($this->url);
            $this->news->saveCacheMessage($this->url, $message);

        }
    }
}
